package utils
{
	import mx.collections.ArrayCollection;
	import mx.utils.ArrayUtil;

	public class UIDUtil
	{
		public function UIDUtil()
		{
		}
		
		public static function update(list:Object):Array
		{
			var result : Array = null;
			if(list != null)
			{
				for(var ii:int=0;ii<list.length;ii++)
				{
					list[ii].uid = ii; 
				}
			}
			return ArrayUtil.toArray(list);
		}
	}
}